package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.EnergySnapshotDao;
import com.platform.entity.EnergySnapshotEntity;
import com.platform.service.EnergySnapshotService;

/**
 * 每日能量发放Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-06-18 10:52:36
 */
@Service("energySnapshotService")
public class EnergySnapshotServiceImpl implements EnergySnapshotService {
    @Autowired
    private EnergySnapshotDao energySnapshotDao;

    @Override
    public EnergySnapshotEntity queryObject(Integer id) {
        return energySnapshotDao.queryObject(id);
    }

    @Override
    public List<EnergySnapshotEntity> queryList(Map<String, Object> map) {
        return energySnapshotDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return energySnapshotDao.queryTotal(map);
    }

    @Override
    public int save(EnergySnapshotEntity energySnapshot) {
        return energySnapshotDao.save(energySnapshot);
    }

    @Override
    public int update(EnergySnapshotEntity energySnapshot) {
        return energySnapshotDao.update(energySnapshot);
    }

    @Override
    public int delete(Integer id) {
        return energySnapshotDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return energySnapshotDao.deleteBatch(ids);
    }
}
